home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 3 code / ISO 9660 & High Sierra / iso9660 ƒ / ErrorMsg.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-16  |  1.2 KB  |  40 lines  |  [TEXT/KAHL]

  1. /************************************************************************
  2.  *
  3.  *    Copyright © 1990    Apple Computer, Inc.  All rights reserved.
  4.  *
  5.  ************************************************************************/
  6.  
  7. #include <DialogMgr.h>
  8. #include <pascal.h>
  9.  
  10. #include <stdio.h>
  11. #include "HighSierra.h"
  12. #include "BuildISO.h"
  13. #include "DialogUtils.h"
  14.  
  15. /************************************************************************
  16.  *
  17.  *  Function:        ErrorMsg
  18.  *
  19.  *  Purpose:        tell user about some error
  20.  *
  21.  *  Returns:        nothing
  22.  *
  23.  *  Side Effects:    displays an error message
  24.  *
  25.  *  Description:    we assume that you are passing stuff in as if you
  26.  *                    were using printf.  Put up a dialog that tells what
  27.  *                    went wrong using your message.
  28.  *
  29.  ************************************************************************/
  30. void
  31. ErrorMsg(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
  32. char *a, *b, *c, *d, *e, *f, *g, *h, *i, *j, *k, *l, *m, *n, *o, *p, *q, *r, *s, *t;
  33. {
  34.     char    errorString[255];
  35.     
  36.     sprintf(errorString, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t);
  37.     CtoPstr(errorString);
  38.     ParamText((StringPtr)errorString, NULL, NULL, NULL);
  39.     Alert(DU_CenterALRT(129), 0L);
  40. }